home *** CD-ROM | disk | FTP | other *** search
/ Delphi Magazine Collection 2001 / Delphi Magazine Collection 20001 (2001).iso / DISKS / Issue38 / BuildPro / BUILD / OutputBuild.bat < prev   
DOS Batch File  |  1998-04-22  |  499b  |  22 lines

  1. @ECHO OFF
  2. REM OutputBuild.bat
  3. REM This compiles the product using default compiler options and places the executables in a named directory.
  4.  
  5. REM Build the first project.
  6. CD "..\My Project 1"
  7. DCC32 /Q /E..\BuildOutput MyProject1.dpr
  8. IF ERRORLEVEL 1 GOTO FAILED
  9.  
  10. REM Now build the second project.
  11. CD "..\My Project 2"
  12. DCC32 /Q /E..\BuildOutput MyProject2.dpr
  13. IF ERRORLEVEL 1 GOTO FAILED
  14.  
  15. ECHO My Product built OK
  16. GOTO END
  17.  
  18. :FAILED
  19. ECHO My Product failed to build
  20.  
  21. :END
  22. CD ..\Build